package com.vanguard.mapper;

import com.vanguard.domain.Appointment;
import com.vanguard.domain.vo.AppointmentVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface AppointmentMapper extends Mapper<Appointment> {

    /**
     * 根据用户的openId获得预约信息列表
     * @param openId
     * @return
     */
    List<AppointmentVo> findByOpenId(String openId);

    /**
     * 查询预约信息详情
     * @param id
     * @return
     */
    AppointmentVo findByAppointId(Integer id);
}